package com.mashang.stuManSystem.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mashang.stuManSystem.entity.Student;
import com.mashang.stuManSystem.entity.vo.StudentVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StudentMapper extends BaseMapper<Student> {
    StudentVo queryById(Integer studentId);

    Page<StudentVo> queryList(@Param("page") Page<StudentVo> studentVoPage, @Param(Constants.WRAPPER) QueryWrapper<StudentVo> qw);
}
